package cn.bass.marketing.convertor;

import cn.bass.marketing.common.vo.resp.MarketingStrategyRuleRespVO;
import cn.bass.marketing.entity.MarketingStrategyRuleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * {@author}: LiuWei
 * {@version}: 1.0
 * {@since}: 2024-08-15
 * {@link}: cn.bass.marketing.common.constant.RulesConstant
 * 描述：权重规则枚举
 */
@Mapper
public interface MarketingStrategyRuleConvertor {

    MarketingStrategyRuleConvertor INSTANCE = Mappers.getMapper(MarketingStrategyRuleConvertor.class);

    MarketingStrategyRuleDO respVO2do(MarketingStrategyRuleRespVO entity);

    MarketingStrategyRuleRespVO do2RespVO(MarketingStrategyRuleDO dto);

    List<MarketingStrategyRuleDO> respVOList2doList(List<MarketingStrategyRuleRespVO> entities);

    List<MarketingStrategyRuleRespVO> doList2respVOList(List<MarketingStrategyRuleDO> DTOs);
}
